// void, Obj This

Unit this;
str class_unit;

this = This.AsUnit;

if(!.IsValid) return;

if (.InShip())
	return;//ships don't have interface for adding/removing units

Sleep(rand(3000)+100);

while (!.Stop(1000));

if (.race==Carthage){
       class_unit = "CVillager";
} else if (.race==Iberia){
       class_unit = "IVillager";
} else if (.race==Britain){
       class_unit = "BVillager";
} else if (.race==Germany){
       class_unit = "TVillager";
} else if (.race==Egypt){
       class_unit = "EVillager";
} else if (.race==Gaul){
       class_unit = "GVillager";
} else if(.race == ImperialRome || .race == RepublicanRome){
       class_unit = "RVillager"; 
} else {
  	class_unit = "IVillager";
} 

Sleep(rand(500)+500);
.Mutate(class_unit);   


